import re
log3 = 'Sep 26 2021 23:11:02-08:00'
print(log3)
print(re.search(r'[0-9][0-9]:[0-9][0-9]:[0-9][0-9]',log3).group())

print(re.search(r'\d\d:\d\d:\d\d',log3).group())

log4 = 'MAC move detected, VlanId = 54, MacAddress = 0000-5e00-0136,'
print(log4)
print(re.search(r'\w\w\w\w-\w\w\w\w-\w\w\w\w',log4).group())


log5 = 'MacAddress = 00000-5e00-0136, Original-Port = GE0/0/1, Flapping port = GE0/0/2.'
print(log5)
print(re.search(r'0+',log5).group())
print(re.search(' (00)+',log5).group())

log6 = 'MacAddress = 0000-5e00-0136, Original-Port = GE0/0/1, Flapping port = GE0/0/2.'
print(log6)

#print(re.search(r'\w+-\w+-\w+-',log6).group())
#print(re.search(r'\w+-\w+-\w-',log6).group()) 
print(re.search(r'\w+-\w+-\w+',log6).group())

print(re.search(r'(\w+-)+\w+',log6).group())